package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.Appointment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AppointmentMapper {

    int insertAppointment(Appointment appointment);
    int updateAppointmentById(Appointment appointment);
    Appointment selectAppointmentById(Integer id);
    List<Appointment> selectAppointmentAll(@Param("consultId") Integer consultId,
                                           @Param("userId") Integer userId,
                                           @Param("status") Integer status
                                           );
    int deleteAppointmentById(Integer id);
    int deleteAppointmentByList(List<Integer> idList);

}
